package com.atguigu.eduservice.client.impl;

import com.atguigu.commonutils.Result;
import com.atguigu.eduservice.client.VodClient;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;

@Component
public class VodClientFeignException implements VodClient {
	/**
	 *当发生熔断时执行以下操作
 	 * @param videoId
	 * @return
	 */


	@Override
	public Result removeVideo(String videoId) {
		return Result.error().message("发生了熔断操作");
	}

	@Override
	public Result getMember(HttpServletRequest request) {
		return Result.error().message("发生了熔断操作");
	}
}
